package com.vito.oa.act.extend.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.vito.act.model.ActExTableModel;
import com.vito.base.model.MyHashMap;
import com.vito.oa.act.extend.model.OaActExTableModel;

public interface OaActExTableMapper{
	public int saveActExTable(OaActExTableModel actExTableModel);
	public int deleteActExTable(ActExTableModel actExTableModel);
	public int updateActExTable(ActExTableModel actExTableModel);
	public List<ActExTableModel> queryActExTableByPage(ActExTableModel actExTableModel);
	public int queryActExTableCount(ActExTableModel actExTableModel);
	public List<MyHashMap<String, String>> queryActExTableTree(ActExTableModel actExTableModel);
	/**
	 * 根据表名或者说明信息查询表信息
	 * @param actExTableModel
	 * @return
	 */
	public List<ActExTableModel> queryTableList(ActExTableModel actExTableModel);
	/**
	 * 查询当前业务下的所有表信息（不包含当前编辑表）
	 * @param map
	 * @return
	 */
	public List<MyHashMap<String, String>> queryTableListByBuss(Map<String, String> map);//String businessId,String tableKey
	/**
	 * @param param key,nodeId
	 * @return 查询当前节点所有的表
	 */
	List<ActExTableModel> queryActExTableByKeyAndNode(Map<String,Object> param);
	/**
	 * 更新表父节点信息
	 * @param mainTableKey
	 * @param childTableKey
	 * @return
	 */
	public int updateTableParentKey(Map<String, String> map);//String mainShortName,String childShortName
	
	String queryTableEncrypt(String tableKey);
	String queryRefkey(@Param("peocessKey")String processKey,@Param("nodeId")String nodeId);
	
}
